package com.cn.jdia.tas.dao;

import java.util.List;

import com.cn.jdia.tas.model.U_department;

public interface U_departmentMapper {
    int deleteByPrimaryKey(String deptid);

    int insert(U_department record);

    int insertSelective(U_department record);

    U_department selectByPrimaryKey(String deptid);

    int updateByPrimaryKeySelective(U_department record);

    int updateByPrimaryKey(U_department record);
    
    /*
     * 当前加入parentdeptid=1
     * 即只显示一级部门
     * */
    List<U_department> getdeptinfo();
    
    List<U_department> querySubDept(String parentDeptId);
    
    U_department selectParentDept(String deptId);
}